package c10_quickStart;

import java.util.stream.Stream;

public class Test {
    public static void main(String[] args) {
        //1.创建流
        Stream<String> stream = Stream.of("张三", "李四", "王五", "赵六");
        //2.中间操作
        Stream<String> stream1 = stream.filter(s -> s.startsWith("张"));
        //3.终止操作
        stream1.forEach(System.out::println);
    }
}
